#! /bin/sh
JDK_HOME=/jdk/java-8-openjdk-amd64/
JAR_NAME=keter-app.jar
PORT=8888
$JDK_HOME/bin/java -jar -Dfile.encoding=UTF-8  "$JAR_NAME" --headless --port $PORT > console.log&
tail -f console.log
#  Options:
# --jettyXml file     - Apply server configuration from a Jetty XML file
# --jettyWebXml file  - Apply webapp context configuration from a Jetty XML file
# --logConfig file    - Read log4j configuration from file
# --port n            - Create an HTTP listener on port n (default 8080)
# --bindAddress addr  - Accept connections only on address addr (default: accept on any address)
# --forwarded         - Set reverse proxy handling using X-Forwarded-For headers
# --requestHeaderSize 6144 - Set the size of the buffer for request headers (in bytes).
# --contextPath /path - Set context path (default: /)
# --dirAllowed true|false - Allow directory indexes? (Default: false)
# --extractWar true|false - Extract war file? (Default: false)
# --headless          - Print this help message
# --initParam name=value - Set context init parameter
# --sslProxied        - Running behind an SSL proxy
# --tmpDir /path      - Temporary directory, default is System.getProperty("java.io.tmpdir")